package com.zjp.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 实体类
 */
@Data
@NoArgsConstructor
public class User {
    private String name;
    private Integer age;
    private User friend;//对象类型
    private String role;//角色

    public User(String name, Integer age) {//提供带两个参数的构造方法
        this.name = name;
        this.age = age;
    }
}
